# coding: utf-8
from application import db
from common.models.user import User
from common.models.meeting_meetingroom import MeetingRoom


class MeetingOrder(db.Model):
    __tablename__ = 'meeting_order'

    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(50))
    meetingdate = db.Column(db.Date)
    meetingstime = db.Column(db.DateTime)
    meetingetime = db.Column(db.DateTime)
    uid = db.Column(db.Integer,db.ForeignKey('user.id'))
    mark = db.Column(db.Integer)
    meetingroom = db.Column(db.String(30))
    updated_time = db.Column(db.DateTime)
    created_time = db.Column(db.DateTime)
    creater = db.relationship('User', foreign_keys=uid)
    city = db.Column(db.String(30, 'utf8mb4_0900_ai_ci'))